menus: Fix menus on non-default displays
authorMatthias Clasen <mclasen@redhat.com>
Wed, 1 May 2019 20:41:59 +0000 (20:41 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 1 May 2019 22:50:29 +0000 (22:50 +0000)
commit377ec33069e8ca6939772f60e9ad53a688af7ec9
tree1e692c8d681c810152a0cfd2be216c9b2d46c274
parent737400ddbca9cba0dd36e0991161a01977a7de37
menus: Fix menus on non-default displays

Currently, we sometimes emit display-changed
when the display changed, and sometimes we don't
since the display is changed via gtk_widget_root.

Listen for notify::root as well and update our
display. This is a temporary fix - all display
changes should go through gtk_widget_root,
eventually.
gtk/gtkmenu.c